home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / shell / xd-2.08 / xd-2 / xd / usr / local / include / ConfigFile.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-14  |  510 b   |  23 lines

  1. #ifndef _ConfigFile_H_
  2. #define _ConfigFile_H_
  3.  
  4. #include <stdio.h>
  5. #include <string.h> 
  6. #include <ICString.h>
  7.  
  8. class ConfigFile: public ICString
  9. {
  10.     public:
  11.     ConfigFile(char const *stream);    // Name of config file given
  12.     ~ConfigFile();            // destructor
  13.     char const *get_param(        // gets a parameter (or 0)
  14.             char const *name);
  15.     char const *next_token(void);    // get the next token from wp
  16.     private:
  17.         void readfile(FILE *stream);    // Do the file reading
  18.     char
  19.         *wp;            // work copy of the string
  20. };
  21.  
  22. #endif
  23.